﻿using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace scheduleMVC.Models
{
    [Table("Employee")]
    public class EmployeeModel 
    {
        public EmployeeModel()
        {
            Tasks = new List<TasksModel>();
        }

        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Employee_ID { get; set; }
        [StringLength(150)]
        [Display(Name = "First Name")]
        public string FirstName { get; set; }
        [StringLength(150)]
        [Display(Name = "Last Name")]
        public string LastName { get; set; }

        [StringLength(50)]
        public string Salary_Type { get; set; }

        public int? Manager_ID { get; set; }

        [StringLength(20)]
        public string Title { get; set; }

        public DateTime? Hire_Date { get; set; }

        [Column(TypeName = "numeric")]
        public decimal? Salary { get; set; }

        [Column(TypeName = "numeric")]
        public decimal? Vacation_Hrs { get; set; }

        [Column(TypeName = "numeric")]
        public decimal? SickLeave_Hrs { get; set; }

        public DateTime? Created_Date { get; set; }

        public DateTime? Modified_Date { get; set; }

        [Required]
        [StringLength(128)]
        public string UserId { get; set; }
        public List<TasksModel> Tasks { get; set; }

    }


   
    
}